package org.dormi.learn.implB;

import org.dormi.learn.core.ItemSDO;

/**
 * add description here
 *
 * @author : dormi330
 * @version : 1.0
 */
public class ItemSDOImplB implements ItemSDO {

    private Long id;

    private boolean hotel;

    private boolean primary;

    public ItemSDOImplB(Long id, boolean hotel, boolean primary) {
        super();
        this.id = id;
        this.hotel = hotel;
        this.primary = primary;
    }

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public boolean isHotel() {
        return hotel;
    }

    @Override
    public void doSomething() {
        System.out.println("gaga, im fine");
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setHotel(boolean hotel) {
        this.hotel = hotel;
    }

    public boolean isPrimary() {
        return primary;
    }

    public void setPrimary(boolean primary) {
        this.primary = primary;
    }

}
